
import React from 'react';
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { AntdRegistry } from '@ant-design/nextjs-registry';
import "./globals.css";
import { ConfigProvider } from 'antd';
import theme from '@/theme/themeConfig';

const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
  title: "国家癌症中心临床试验平台",
  description: "这是我开发的国家癌症中心临床试验平台",
  icons: {
    icon: 'favicon.ico'
  }
};

interface Iprops extends React.PropsWithChildren {
    
}


const RootLayout = (props: Iprops) => {
  const { children } = props
  return <html lang="en">

    <body className={inter.className}>
      <AntdRegistry>
        <ConfigProvider theme={theme}>
            {children}
        </ConfigProvider>
      </AntdRegistry>
    </body>
  </html>
}

export default RootLayout;